package com.android.webttest.Api.Service;


import com.android.webttest.model.Barrage;
import com.android.webttest.model.Good;
import com.android.webttest.model.GoodAllInfo;
import com.android.webttest.model.GoodComments;
import com.android.webttest.model.GoodDetailInfo;
import com.android.webttest.model.HeatData;
import com.android.webttest.model.PageBean;
import com.android.webttest.model.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface GoodApiService {

    @GET("good")
    Call<Result<PageBean<Good>>> list(
            @Query("pageNum") Integer pageNum,
            @Query("pageSize") Integer pageSize,
            @Query("categoryId") Integer categoryId,
            @Query("state") String state,
            @Query("minPrice") Double minPrice,
            @Query("maxPrice") Double maxPrice,
            @Query("keyWords") String keyWords
    );

    @GET("good/detail")
    Call<Result<Good>> detail(@Query("goodId") Integer goodId);

    @GET("good/getGoodDetailInfo")
    Call<Result<GoodDetailInfo>> getGoodDetailInfo(@Query("goodId") Integer goodId);

    @GET("good/getGoodHeatData")
    Call<Result<HeatData>> getGoodHeatData(@Query("goodId") Integer goodId);


    @GET("good/getBarrage")
    Call<Result<List<Barrage>>> getBarrage(@Query("goodId") Integer goodId);

    @GET("good/getGoodComments")
    Call<Result<List<GoodComments>>> getGoodComments(@Query("goodId") Integer goodId);

    @GET("good/getGoodAllInfo")
    Call<Result<GoodAllInfo>> getGoodAllInfo(@Query("goodId") Integer goodId);
}